package com.cupcorn.ads;

import java.util.Hashtable;

import com.cupcorn.balapkarung.MainActivity;
import com.tapjoy.TapjoyConnect;
import com.tapjoy.TapjoyConnectFlag;

public class Tapjoy
{
	public static void init(MainActivity mainActivity)
	{
		String tapjoyAppID = "463331ce-7957-49e5-b33c-658c561076a0";
		String tapjoySecretKey = "WF10kRhn4OFQGD3JAjg4";
		Hashtable<String, String> flags = new Hashtable<String, String>();
		flags.put(TapjoyConnectFlag.ENABLE_LOGGING, "true");
		TapjoyConnect.requestTapjoyConnect(mainActivity.getApplicationContext(), tapjoyAppID, tapjoySecretKey, flags);
	}
	
	public static void pause()
	{
		TapjoyConnect.getTapjoyConnectInstance().appPause();
	}
	
	public static void resume()
	{
		TapjoyConnect.getTapjoyConnectInstance().appResume();
	}
}
